package firstping.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.*;

import firstping.model.Customer;

@SuppressWarnings("serial")
public class FirstpingServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		resp.getWriter().println("Hello, world");
		
		req.setAttribute("title", "Website monitoring for webmasters");
		req.setAttribute("keyword", "account,monitoring domain,firstping,statistics site");
		req.setAttribute("description", "Management infomation account.We provide web site monitoring to webmasters. Monitor your web site is availability 24 hours a day, 7 days a week with instant email alerts and weekly web site performance statistics.");
		
		try {
			req.getRequestDispatcher("/index.jsp").forward(req, resp);
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
